﻿<%@ Page  Language="C#" MasterPageFile="~/Base.Master" AutoEventWireup="true"
    CodeBehind="ViewNewsListHtml.aspx.cs" Inherits="VideoNetApplication.ViewNewsListHtml" %>
<%@ Import Namespace="VideoNetApplication.Common.Helper" %>
 
<asp:Content ID="Content2" ContentPlaceHolderID="BasePlaceHolder" runat="server">
    <videonet:navigation id="nav" runat="server"></videonet:navigation>
    <div class="main mb15">
        <div class="pleft">
            <div class="item">
                <h3>
                    <strong>学校新闻</strong></h3>
                <div class="news">
                    <ul class="news_list">
                    <asp:Repeater ID="repNews" runat="server">
                    <ItemTemplate>
                    
                    <li> <a href="ViewNewsDetail.aspx?nid=<%#Eval("id") %>&schoolID=<%=SchoolId%>"><%# StringUtils.getLimitLengthString(Eval("NewsTitle").ToString(),70,"") %></a>&nbsp;&nbsp;&nbsp;&nbsp;<%#  DateTime.Parse(Eval("CreatedTime").ToString()).ToString("yyyy-MM-dd")%></li>
                        </ItemTemplate>
                      </asp:Repeater>
                    </ul>
                    <div class="pages">
                    <asp:AspNetPager ID="pager" runat="server" PageSize="15" 
                            onpagechanged="pager_PageChanged"  AlwaysShow="true"></asp:AspNetPager>
                        <%--<p>
                            1-15/45条</p>
                        <ul>
                            <li><a href="#">11</a></li>
                            <li><a href="#">12</a></li>
                            <li class="on">13</li>
                            <li><a href="#">14</a></li>
                            <li>...</li>
                            <li><a href="#">20</a></li>
                        </ul>--%>
                    </div>
                </div>
            </div>
        </div>
        <div class="pright">
            <div class="mb15 login">
                <VideoNet:UserLogin ID="Ulogin" runat="server"></VideoNet:UserLogin>
            </div>
            <VideoNet:ClassCourse ID="ClassCourse" runat="server"></VideoNet:ClassCourse>
        </div>
        <div class=" clear">
        </div>
    </div>
</asp:Content>
